<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>运算符优先级</title>
</head>

<body>
    <script>
        // console.log(4 >= 6 || '人' != '修狗' && !(12 * 2 == 144) && true)
        // var num = 10;
        // console.log(5 == num / 2 && (2 + 2 * num).toString() === '12'); // false

        // * && 与 有false就是false  
        // * || 或 有true就是true 

        var a = 3 > 5 && 2 < 7 && 3 == 4;
        //  F   &&  T  && F   
        console.log(a); // false

        var b = 3 <= 4 || 3 > 1 || 3 != 2;
        //  F   ||  T   ||  T
        console.log(b); // true

        var c = 2 === '2';
        //  F
        console.log(c); //false

        var d = !c || b && a;
        // T || F 
        console.log(d); // true
    </script>
</body>

</html>